#("#")define layout_admin()
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="shortcut icon" type="images/x-icon" href="https://gitee.com/uploads/95/617095_jxe.png?1482992943">
  <title>jxtpro</title>
  #("#")@css?()
  #("#")include("/assets/comm/_resource.html")
</head>
<style>
	.layui-body{overflow-y: scroll;}
</style>
<body class="layui-layout-body" style="overflow-y: scroll;">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <a class="layui-logo" href="/">jxtpro 后台管理</a>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item"><a href="">控制台</a></li>
      <li class="layui-nav-item">
        <a href="javascript:;">其它系统</a>
        <dl class="layui-nav-child">
          <dd><a href="">邮件管理</a></dd>
          <dd><a href="">消息管理</a></dd>
          <dd><a href="">授权管理</a></dd>
        </dl>
      </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="https://gitee.com/uploads/95/617095_jxe.png?1482992943" class="layui-nav-img">
          本心
        </a>
        <dl class="layui-nav-child">
          <dd><a href="">基本资料</a></dd>
          <dd><a href="">安全设置</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="">退了</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">jxtpro</a>
          <dl class="layui-nav-child">
          	#for(meta : metas)
          	<dd><a href="/#(rootRouteLowName ??)/#(meta.claLowName??)">#(meta.claLowName??)</a></dd>
			#end
          </dl>
        </li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 15px;">
		    #("#")@main_layout()
	</div>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © jxtpro.com - 底部固定区域
  </div>
</div>
#("#")@js?()
<script>
//JavaScript代码区域
layui.use(['element','jquery'], function(){
  var element = layui.element;
  var $ = layui.jquery;
  
  
  var parentMenu=window.localStorage.getItem('parentMenu');
	var childenMenu=window.localStorage.getItem('childenMenu');
	if(parentMenu){
		$('.layui-nav-tree .layui-nav-child').find('dd').removeClass('layui-this');
		$('.layui-nav-tree .layui-nav-child').eq(parentMenu).find('dd:eq('+childenMenu+')').addClass('layui-this');
	}
	$('.layui-nav-tree .layui-nav-child').each(function(){
		var This=this;
		$(this).find('dd').on('click',function(){
			
			window.localStorage.setItem('pMenu',$(this).text() + "_");
			window.localStorage.setItem('cMenu', $(this).parent('dl').prev().text()+"_");
			window.localStorage.setItem('parentMenu',$('.layui-nav-tree .layui-nav-child').index(This));
			window.localStorage.setItem('childenMenu',$(this).parent().find('dd').index(this));
			$('.layui-nav-tree .layui-nav-child').find('dd').removeClass('layui-this');
			$(this).addClass('layui-this');
		});
	})
  
});

</script>
</body>
</html>
#("#")end